package com.zhenquan.doubanread.dao;

import com.zhenquan.doubanread.pojo.WantRead;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WantReadMapper {


    int insert(WantRead record);

    int insertSelective(WantRead record);

    WantRead selectByIdAndUserId(@Param("id") Integer id, @Param("userId") Integer userId);

    int deleteByIdAndUserId(@Param("id") Integer id, @Param("userId") Integer userId);

    List<WantRead> selectWantReadByUserId(@Param("userId") Integer userId);
}